import 'package:flutter/material.dart';
import 'package:flutter_taotaoshipin/widget/base_dialog.dart';

class ExitDialog extends StatelessWidget {
  const ExitDialog({super.key, this.onSuccess});

  final VoidCallback? onSuccess;

  @override
  Widget build(BuildContext context) {
    return BaseDialog(
      title: '提示',
      onPressed: onSuccess,
      child: const Padding(
        padding: EdgeInsets.symmetric(horizontal: 16, vertical: 6),
        child: Text(
          '您确定要退出登录吗？',
          style: TextStyle(fontSize: 16),
        ),
      ),
    );
  }
}
